<?php namespace Home\Controller;
use Hdphp\Controller\Controller;
//订单控制器
class PayController extends Controller{
//首页
private $model;
public function __construct(){
    	parent::__construct();
		$this->model=new \Common\Model\Pay;
}
	public function index(){
		if(IS_POST){
		    if($this->model->addData()){
		    	View::success('提交成功','pay/index');
		    }
		    View::error($this->model->getError());
		}
		View::make();
	}
}